import request from '@/utils/request'

// 查询项目需求记录列表
export function listProjectDemandRecord(query) {
  return request({
    url: '/system/projectDemandRecord/list',
    method: 'get',
    params: query
  })
}

// 查询项目需求记录详细
export function getProjectDemandRecord(id) {
  return request({
    url: '/system/projectDemandRecord/' + id,
    method: 'get'
  })
}

// 新增项目需求记录
export function addProjectDemandRecord(data) {
  return request({
    url: '/system/projectDemandRecord',
    method: 'post',
    data: data
  })
}

// 修改项目需求记录
export function updateProjectDemandRecord(data) {
  return request({
    url: '/system/projectDemandRecord',
    method: 'put',
    data: data
  })
}

// 删除项目需求记录
export function delProjectDemandRecord(id) {
  return request({
    url: '/system/projectDemandRecord/' + id,
    method: 'delete'
  })
}

// 导出项目需求记录
export function exportProjectDemandRecord(query) {
  return request({
    url: '/system/projectDemandRecord/export',
    method: 'get',
    params: query
  })
}